package com.xsz.mapper;

import com.xsz.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int insert(User record);


    User selectByPrimaryKey(String id);
    User selectLogin(User record);
    User selectByName(String name);

    List<User> selectByLikeName(String name);
    int updateByPrimaryKeySelective(User record);

    @Select("select * from tb_user" )
    List<User> selectAll();

    User selectByIdAndPwd(User record);


}